import { createContext } from "react";

// 定义 Theme 的接口类型
interface ThemeContextType {
	oppose: number;
	count: number;
	handleCount: () => void;
	handleOppose: () => void;
}

// 使用接口类型创建 Context，并提供默认值
const ThemeContext = createContext<ThemeContextType>({
	oppose: 0 as number,
	count: 0 as number,
	handleCount: () => { },
	handleOppose: () => { }
});

export default ThemeContext;
